+Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
+ of list
+
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
it; --libs strips out redundant -L<path>'s properly (there was
code in there to do it before, but it didn't work)
+>>>>>>> 1.528
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
+Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
+ of list
+
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
it; --libs strips out redundant -L<path>'s properly (there was
code in there to do it before, but it didn't work)
+>>>>>>> 1.528
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
+Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
+ of list
+
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
it; --libs strips out redundant -L<path>'s properly (there was
code in there to do it before, but it didn't work)
+>>>>>>> 1.528
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
+Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
+ of list
+
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
it; --libs strips out redundant -L<path>'s properly (there was
code in there to do it before, but it didn't work)
+>>>>>>> 1.528
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
+Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
+ of list
+
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
it; --libs strips out redundant -L<path>'s properly (there was
code in there to do it before, but it didn't work)
+>>>>>>> 1.528
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
+Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
+ of list
+
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
it; --libs strips out redundant -L<path>'s properly (there was
code in there to do it before, but it didn't work)
+>>>>>>> 1.528
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
+Fri Jul 17 17:54:02 1998 Lars Hamann <lars@gtk.org>
+
+ * gtk/gtkclist.c (scroll_vertical): fix to avoid flicker at begin/end
+ of list
+
Fri Jul 17 05:30:47 1998 Tim Janik <timj@gtk.org>
* gtk/gtksignal.c (gtk_handlers_run) (gtk_signal_real_emit):
it; --libs strips out redundant -L<path>'s properly (there was
code in there to do it before, but it didn't work)
+>>>>>>> 1.528
Thu Jul 16 18:24:41 1998 Tim Janik <timj@gtk.org>
* gtk/gtknotebook.h:
GtkScrollType scroll_type,
gfloat position)
{
+ gint old_focus_row;
+
g_return_if_fail (clist != NULL);
g_return_if_fail (GTK_IS_CLIST (clist));
case GTK_SELECTION_EXTENDED:
if (clist->anchor >= 0)
return;
- if (!GTK_CLIST_ADD_MODE (clist))
- gtk_clist_unselect_all (clist);
case GTK_SELECTION_BROWSE:
- if (clist->selection_mode == GTK_SELECTION_BROWSE)
- unselect_row (clist,clist->focus_row, -1, NULL);
-
+ old_focus_row = clist->focus_row;
move_focus_row (clist, scroll_type, position);
+ if (old_focus_row != clist->focus_row)
+ {
+ if (clist->selection_mode == GTK_SELECTION_BROWSE)
+ unselect_row (clist,old_focus_row, -1, NULL);
+ else if (!GTK_CLIST_ADD_MODE (clist))
+ {
+ gtk_clist_unselect_all (clist);
+ clist->undo_anchor = old_focus_row;
+ }
+ }
+
if (clist->selection_mode == GTK_SELECTION_EXTENDED &&
GTK_CLIST_ADD_MODE (clist))
return;
switch (gtk_clist_row_is_visible (clist, clist->focus_row))
{
case GTK_VISIBILITY_NONE:
- select_row (clist, clist->focus_row, -1, NULL);
+ if (old_focus_row != clist->focus_row)
+ select_row (clist, clist->focus_row, -1, NULL);
switch (scroll_type)
{
case GTK_SCROLL_STEP_BACKWARD:
}
default:
- select_row (clist, clist->focus_row, -1, NULL);
+ if (old_focus_row != clist->focus_row)
+ select_row (clist, clist->focus_row, -1, NULL);
break;
}
break;